#import time
#import dailyspents.util as util
#import os
#import cherrypy
#from os.path import join
<html>

#include join(util.HTMLPATH, 'common', 'head.html')

<body>
	<div id="site">
            #include join(util.HTMLPATH, 'common', 'top.html')
	    #include join(util.HTMLPATH, 'common', 'menu.html')
            <div id="content">
              <!-------------------- LEFT SIDE ------------------------->
              <div id="left">
                <div class="tl"><div class="tr">
                        settings
                    </div></div>
                    
                    #include join(util.HTMLPATH, 'common', 'errorMessages.html')
                    
                    <!---------------------- NEW SPENT FORM -------------------------->
                    <div class="newSpentForm">
                        <form name="newForm" action="/user/editUser" method="POST">
                            <table>
                            <tr>
                            <td><label for="name">name</label></td>
                            <td>
                            <input type="text" name="name"
                                   value="$cherrypy.session['user'].name"/>
                            </td>
                            </tr>
                            <tr>
                            <td><label for="password">password</label></td>
                            <td>
                            <INPUT TYPE="password" NAME="password"
                                   value="$cherrypy.session['user'].password"/>
                            </td>
                            </tr>
                            </table>
                            <hr>
                            <table>
                                <tr>
                                    <td>Number of spent per page</td>
                                    <td>
                                        <input type="text" size="3"
                                               name="numberOfSpent"
                                               value="$cherrypy.session['user'].settings.numberOfShownSpent"
                                               style="text-align:right"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Currency</td>
                                    <td>
                                        <input type="text" size="3"
                                               name="currency"
                                               value="$cherrypy.session['user'].settings.currency"
                                               style="text-align:right"/>
                                    </td>
                                </tr>
                            </table>
                            <table>
                            <hr/>
                            <tr>
                            <td><input type="submit" value="Edit"/></td>
                            <td>
                            <input type="reset" value="clear"/>
                            </td>
                            </tr>
                            </table>
                        </form>
                    </div>
                    <!-- END OF NEW SPENT FORM -->
              </div>
              <!-- END OF LEFTSIDE -->
              <!-- RIGHTSIDE -->
              <div id="right">
                            
                            #include join(util.HTMLPATH, 'common', 'categories.html')
				#include join(util.HTMLPATH, 'common', 'locals.html')
				#include join(util.HTMLPATH, 'common', 'payments.html')
				
		  </div>
		</div>
		#include join(util.HTMLPATH, 'common', 'bottom.html')
	</div>
</body>

</html>
